package org.esin.local;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageButton;

public class SceniActivity extends Activity {
	Bundle bundle = new Bundle();
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.scenic_activity);
        
        ImageButton ibtn1= (ImageButton)findViewById(R.id.ImageButton01);
    	ImageButton ibtn2= (ImageButton)findViewById(R.id.ImageButton02);
    	ImageButton ibtn3= (ImageButton)findViewById(R.id.ImageButton03);
    	ImageButton ibtn4= (ImageButton)findViewById(R.id.ImageButton04);
    	ImageButton ibtn5= (ImageButton)findViewById(R.id.ImageButton05);
    	
    	ibtn1.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v)
            {
            	Intent intent =new Intent();
                intent.setClass(SceniActivity.this, SceniSpotsActivity.class);
                bundle.putString("spot", "longmen");
                intent.putExtras(bundle);
                SceniActivity.this.startActivity(intent);
              }
            });
        ibtn2.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v)
            {
            	Intent intent =new Intent();
                intent.setClass(SceniActivity.this, SceniSpotsActivity.class);
                bundle.putString("spot", "baimasi");
                intent.putExtras(bundle);
                SceniActivity.this.startActivity(intent);
              }
            });
        ibtn3.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v)
            {
            	Intent intent =new Intent();
                intent.setClass(SceniActivity.this, SceniSpotsActivity.class);
                bundle.putString("spot", "guanlin");
                intent.putExtras(bundle);
                SceniActivity.this.startActivity(intent);
              }
            });
        ibtn4.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v)
            {
            	Intent intent =new Intent();
                intent.setClass(SceniActivity.this, SceniSpotsActivity.class);
                bundle.putString("spot", "baiyunshan");
                intent.putExtras(bundle);
                SceniActivity.this.startActivity(intent);
              }
            });
    }

}
